package com.learning.servlet2x.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * ClassName: CustomListener
 * Description: 自定义的监听器
 * 实现了 ServletContextListener 接口，负责监听servletContext 的 创建与销毁
 * Date: 2014-10-12 22:25 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class CustomListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("监听创建");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("监听销毁");
    }
}
